package com.itvdn.javaStarter;

public class C05_TwoDimentionalArray {
    // Массивы (двумерный массив).

    public static void main(String[] args) {
        int[][] array = new int[3][3];

        array[0][0] = 1;
        array[0][1] = 2;
        array[0][2] = 3;

        array[1][0] = 4;
        array[1][1] = 5;
        array[1][2] = 6;

        array[2][0] = 7;
        array[2][1] = 8;
        array[2][2] = 9;

        System.out.print(array[0][0]);
        System.out.print(array[0][1]);
        System.out.print(array[0][2]);
        System.out.print("\n");
        System.out.print(array[1][0]);
        System.out.print(array[1][1]);
        System.out.print(array[1][2]);
        System.out.print("\n");
        System.out.print(array[2][0]);
        System.out.print(array[2][1]);
        System.out.print(array[2][2]);
    }
}
